package com.felight;

import java.util.ArrayList;
import java.util.Collections;
import java.util.List;

public class emplist {
	public static void main(String[] Felight){
		 ArrayList<Employee> empList = new ArrayList<Employee>();
		
		empList.add(new Employee(10, "aaa"));
		 empList.add(new Employee(11, "aba"));
		 empList.add(new Employee(12, "caa"));
		 empList.add(new Employee(13, "ada"));
		 empList.add(new Employee(14, "eaa"));
		 System.out.println("Unsorted:" +empList);
		 Collections.sort(empList);
		 System.out.println("sorted:" +empList);
	}

}
